import moment from 'moment'

export const formatDate = (date: string): string => {
  return date ? moment(date).format(_DateFormat['YYYY-MM-DD HH:mm:ss']) : ''
}

export const isEmptyObject = (obj: object): boolean => {
  return Object.keys(obj).length === 0
}
